home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / RAND / ALL95.LZH / letters_tj / text0024.txt < prev   
Encoding:
Text File  |  1995-10-04  |  1.9 KB  |  57 lines

  1. Laurent here, answear to Johan,
  2.  
  3.  
  4. >>I'll also have to recode the structures, coz I'll break them in little tables.
  5. >Hmm, what do you mean by that?
  6. >Is your definition of a table something different from an array?
  7.  
  8. Yes, I think array is the word :-)
  9. Instead of adressing a structure in 68030, I think I would take less machine time
  10. adressing each array lonely. I explain :
  11.  
  12. with a structure array like :
  13.  
  14. short a
  15. short b
  16.  
  17. to access a[40], you must calculate the size of the structure* number.
  18.  
  19. To use code like a[1], then a[2], then a[3], you must increase your register
  20. pointer An before a read.
  21.  
  22. If I code
  23. short a[40]
  24. short b[40] , and so on, I can put a register = first value of the array,
  25. then I use (an)+ mode. With that, code can improve a lot when there are lots
  26. of structure manipulations. I don't know if it speeds c code a lot, coz I'm not
  27. sure a c compiler use (An)+ options. 
  28. If you don't understand what I try to explain, don't worry, keep the structures,
  29. I'll adapt for 68030. Anyway, I'll break all the structures.
  30.  
  31.        
  32. > Yes, that function is a bit strange. The Thing_Array is supposed to hold all
  33. > the objects and stuff in the level, but since those are not used in DVIEW
  34. > the only thing of interest is the player's start position. When that's found
  35. > there's no reason to do anything more.
  36. > We'll of course have to fill the entire array.
  37.  
  38. Does it mean that also it's not used, except for player start pos, I must code it ?
  39. I think it might give the monsters and objects positions in the game, but I may be
  40. wrong. Correct me if I'm wrong.
  41.  
  42.  
  43. >> tomorrow, it would be nice, and useful.
  44. > Ah, I guess I can sleep during the weekend...   ;-)
  45.  
  46. I don't ask you to code doom this night (err, if you want to.. :-),
  47. No, just cleanned code, coz I'll be able to translate code faster. If you can't,
  48. just don't...
  49.  
  50. > I still don't like your name for it, though.
  51.  
  52. So, I'll call it the 'don't cross this wall' function :-)
  53.  
  54. Laurent
  55.  
  56.  
  57.